﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using KCMS.BusinessLogic.Models;
using System.Web.Mvc;
namespace KCMS.Areas.Admin.Models
{
    public class PageEditorModel
    {
        public Page Page { get; set; }
        public IEnumerable<SelectListItem> CategoryList { get; set; }
        public PageEditorModel()
            : base()
        {
            Page = new Page();
        }
        public PageEditorModel(Page page)
        {
            //    Id = page.Id;
            //    Title = page.Title;
            //    Text = page.Text;
            //    MetaDescription = page.MetaDescription;
            //    MetaKeys = page.MetaKeys;
            //    DateOfChange = page.DateOfChange;
            //    DateOfCreate = page.DateOfCreate;
            //    Published = page.Published;
            //    Code = page.Code;
            //    CategoryId = page.CategoryId;
            //    Index = page.Index;
            this.Page = page;
        }
    }
}